package com.hnucm.shopapp.ui.login;

import com.hnucm.shopapp.bean.BaseBean;
import com.hnucm.shopapp.bean.User;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;
import okhttp3.RequestBody;

public interface LoginContract {
    interface ILoginPresenter {
        void getUserByAccount(RequestBody body);
    }

    interface ILoginModel {
        Flowable<BaseBean<List<User>>> getUserByAccount(RequestBody body);
    }

    interface ILoginView {
        void getUserByAccountSuccess(List<User> userList);
        void getUserByAccountError(Throwable throwable);
    }
}
